function ConfirmDeletePageFolder(dir,FolderName,f){
	var agree=confirm('Are you sure you want to delete ' + FolderName + ' and everything in it!? ');
	if (agree)
	location.replace('index.cfm?c=pages&a=deletefolder&&showfolders=1&foldername='+FolderName+'&f='+f+'&dir='+dir); 
	else
	return false ;
}

function ConfirmDeletePage(f,FileName)
{
var agree=confirm("Are you sure you want to delete this page: "+FileName+"?");
if (agree)
	location.replace('index.cfm?c=pages&a=delete&filename='+FileName+'&f='+f); 
else
	return false ;
}
function ShowRenameForm(FName) {
	RenameSpanName = 'rename_' + FName;
	NoRenameSpanName = 'norename_' + FName;
	RenameFormName = 'renameform_' + FName;

	Rename_Span = document.getElementById(RenameSpanName);
	NoRename_Span = document.getElementById(NoRenameSpanName);
			
	Rename_Span.style.display = "block";
	NoRename_Span.style.display = "None";
	document.forms[RenameFormName].PageName.focus();
	document.forms[RenameFormName].PageName.select();
	document.getElementById('the_action').value = 'RenameFile';	
}

function HideRenameForm(FName) {
	RenameSpanName = 'rename_' + FName;
	NoRenameSpanName = 'norename_' + FName;
	RenameFormName = 'renameform_' + FName;
		
	Rename_Span = document.getElementById(RenameSpanName);
	NoRename_Span = document.getElementById(NoRenameSpanName);
	document.getElementById('the_action').value = 'RemoveFiles';	
			
	Rename_Span.style.display = "None";
	NoRename_Span.style.display = "Block";
}
